//
//  HeaderViewModel.swift
//  AnimatedHeader
//
//  Created by alanzhangg on 2023/5/13.
//

import SwiftUI

class HeaderViewModel: ObservableObject {
    
    // to capture start miny value for calculations
    @Published var startMinY: CGFloat = 0
    
    @Published var offset: CGFloat = 0
    
    //header view properties
    @Published var headerOffset: CGFloat = 0
    
    //it will be used for getting top and bottom offsets for header view...
    @Published var topScrollOffset: CGFloat = 0
    @Published var bottomScrollOffset: CGFloat = 0
    
}

